#include <iostream>

using namespace std;

template<typename T>

void myswap(T &a, T &b) {
	T tmp = a;
	a = b;
	b = tmp;
}

void test1() {
	int a = 10;
	int b = 20;
	myswap(a, b);

	cout << a << b << endl;

}

void test2() {
	int a = 10;
	int b = 20;

	myswap<int>(a, b);
	cout << a << b << endl;
}

int main() {
	test1();
	test2();

	return 0;
}